# Load the environment
ENV['RAILS_ENV'] ||= 'test'
require File.dirname(__FILE__) + '/app_root/config/boot'

# Load the plugin
$:.unshift("#{File.dirname(__FILE__)}/../lib")
require 'loaded_plugins'

# Load the testing framework
require 'test/unit'

# Helper methods
class Test::Unit::TestCase
  protected
  def plugins_path
    "#{RAILS_ROOT}/vendor/plugins"
  end
  
  def plugin_path(name)
    "#{plugins_path}/#{name}"
  end
end
